package com.soft.link.utils;

/**
 * company 重庆庆云石油工程技术有限责任公司
 * FileName MsgEnum
 * Package com.soft.link.utils
 * Description
 * author HangXueQian
 * create 2018-03-05 20:03
 * version V1.0
 */
public enum MsgEnum {

    /* 登录相关的错误--开始*/
    Login_Msg_ManyPersion ("001","系统存在多个账号") ,
    Login_Msg_Success ("001001","登录成功") ,
    Login_Msg_False   ("001002","登录失败") ,
    /* 登录相关的错误--结束*/

    Add_Success ("001001001","新增成功") ,
    Add_False   ("001001002","新增异常") ,

    delete_Success ("001001003","删除成功") ,
    delete_False   ("001001004","删除失败") ,

    modify_Success ("001001005","编辑成功") ,
    modify_False   ("001001006","编辑失败") ,

    /*  */
    Conditions_Have_TsUser("002001001","存在人员，请清除角色中的人员关系"),
    ;
    private String code;

    private String desc;
    //构造方法
    MsgEnum (String code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
